﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;

namespace SuperFox.Web
{
    [DataContract]
    public class Order
    {
        [DataMember]
        public PersonalDetails PersonalInfo { get; set; }
        [DataMember]
        public ShippingDetails ShippingInfo { get; set; }

        [DataMember]
        public string Comments { get; set; }

        [DataMember]
        public int OrderNumber { get; set; }

        [DataMember]
        public string OrderIP { get; set; }

        [DataMember]
        public int MarchantId { get; set; }

        [DataMember]
        public decimal TotalCost { get; set; }

        [DataMember]
        public decimal TotalProductCost { get; set; }

        [DataMember]
        public decimal TotalPostageCost { get; set; }

    }

    [DataContract]
    public class ShippingDetails
    {
        
        [DataMember]
        public Person PersonInfo { get; set; }

        [DataMember]
        public string BranchName { get; set; }

        [DataMember]
        public Address AddressInfo { get; set; }

        [DataMember]
        public string CostCenter { get; set; }
    }

    [DataContract]
    public class Person
    {
        [DataMember]
        public string Title { get; set; }

        [DataMember]
        public string FirstName { get; set; }

        [DataMember]
        public string Surname { get; set; }

    }

    [DataContract]
    public class Address
    {
        [DataMember]
        public string StreetAddress { get; set; }

        [DataMember]
        public string Suburb { get; set; }

        [DataMember]
        public string State { get; set; }

        [DataMember]
        public string Postcode { get; set; }

        [DataMember]
        public string Country { get; set; }


        
    }

    [DataContract]
    public class PersonalDetails
    {

        [DataMember]
        public Person PersonInfo { get; set; }

        [DataMember]
        public string CampaginTitle { get; set; }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public string Company { get; set; }

        [DataMember]
        public string Telephone { get; set; }

        [DataMember]
        public string Mobile { get; set; }
    }
}